/**
 * 
 */
package com.cipe.cmrs.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Krishna This the Pojo calls for table Cacheactionablealertsmessage
 * 
 */

@Entity
@Table(name = "Cacheactionablealertsmessage")
public class ActionableAlertsMessage extends BaseEntity {

	private static final long serialVersionUID = -2597155075245111916L;
	@Column
	String message;
	@Column
	Date date;
	@Column
	String url;
	/**
	 * Attribute userinfo
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "programassistant")
	private User programAssistant;
	/**
	 * Attribute userinfo
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "regionaldirector")
	private User regionaldirector;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "programofficer")
	private User programOfficer;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "regionid")
	private Region region;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "actionablealertsid")
	ActionableAlert actionableAlert;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public ActionableAlert getActionableAlert() {
		return actionableAlert;
	}

	public void setActionableAlert(ActionableAlert actionableAlert) {
		this.actionableAlert = actionableAlert;
	}

	/**
	 * @return the programAssistant
	 */
	public User getProgramAssistant() {
		return programAssistant;
	}

	/**
	 * @param programAssistant the programAssistant to set
	 */
	public void setProgramAssistant(User programAssistant) {
		this.programAssistant = programAssistant;
	}

	/**
	 * @return the regionaldirector
	 */
	public User getRegionaldirector() {
		return regionaldirector;
	}

	/**
	 * @param regionaldirector the regionaldirector to set
	 */
	public void setRegionaldirector(User regionaldirector) {
		this.regionaldirector = regionaldirector;
	}

	/**
	 * @return the programOfficer
	 */
	public User getProgramOfficer() {
		return programOfficer;
	}

	/**
	 * @param programOfficer the programOfficer to set
	 */
	public void setProgramOfficer(User programOfficer) {
		this.programOfficer = programOfficer;
	}

	/**
	 * @return the region
	 */
	public Region getRegion() {
		return region;
	}

	/**
	 * @param region the region to set
	 */
	public void setRegion(Region region) {
		this.region = region;
	}
	
}
